import myAxios from "./request.js"

export const userRegister = (param) => {
    return myAxios.post("/user/register", param)
}

export const userLogin = (param) => {
    return myAxios.post("/user/login", param)
}

export const userInfoRequest = () => {
    return myAxios.get("/user/getMyInfo")
}
export const userChangeInfoRequest = (param) => {
    return myAxios.post("/user/changeInfo", param)
}

export const getUserInfoByArticleIdRequest = (id) => {
    return myAxios.get(`/user/getUserInfoByArticleId/${id}`)
}